import command, { COMMAND_PREFIX } from './index';

async function run() {
    try {
        const args = process.argv;
        if (args && args.length >= 2) {
            const result = await command.context.exec(`${COMMAND_PREFIX} ${args.slice(2).join(' ')}`);
            if (result) {
                console.log(result);
            }
        }
    } catch (error) {
        console.error(error);
    }
}

run();
